﻿using Library.OrmEnterpriseEntity.TableInfo;

namespace Library.OrmEnterpriseEntity {
	public class OrderStatement : QueryBuilder {
		/// <summary>
		/// Use default Order:Acs
		/// </summary>
		/// <param name="column"></param>
		public OrderStatement(DbColumnView column)
			: this(column, QueryOrder.Asc) {

		}
		public OrderStatement(DbColumnView column, QueryOrder order) {
			Column = column;
			Order = order;
		}
		public DbColumnView Column { get; private set; }
		public QueryOrder Order { get; private set; }
		//public override string ToString() {
		//  return Build();
		//}

		#region Overrides of QueryBuilder

		//public override string Build() {
		//  return DbContext.Instance.Context.BuildQuery(this);
		//}

		#endregion
	}
}
